package com.iims.flowable.flow.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author fanpei
 * @date 2021/3/28 19:48
 */
@ApiModel("流程实例视图")
@Data
public class FlowSaveXmlVo implements Serializable {

    /**
     * 流程名称
     */
    @ApiModelProperty(value = "流程名称，长度不超过255个字符", required = true)
    @NotBlank(message = "流程名称不能为空")
    @Size(max = 255, message = "流程名称长度不超过255个字符")
    private String name;

    /**
     * 流程分类
     */
    @ApiModelProperty(value = "流程分类，长度不超过255个字符", required = true)
    @NotBlank(message = "流程分类不能为空")
    @Size(max = 255, message = "流程分类长度不超过255个字符")
    private String category;

    /**
     * xml 文件
     */
    @ApiModelProperty(value = "流程XML内容", required = true)
    @NotBlank(message = "流程XML内容不能为空")
    private String xml;

}
